package cn.tyoui.pojo;

/**
 * 存储文件信息
 *
 * @author Tyoui
 */
public class FileMessage {

    //文件绝对路径
    private String filePath;

    //文件名
    private String fileName;

    //文件内容
    private String fileContent;

    //搜索得分
    private float score;

    //文件大小
    private long fileSize;

    public float getScore() {
        return score;
    }

    public FileMessage(String filePath, long fileSize) {
        this.filePath = filePath;
        this.fileSize = fileSize;
    }

    public FileMessage(String filePath, float score) {
        this.filePath = filePath;
        this.score = score;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public void setFileContent(String fileContent) {
        this.fileContent = fileContent;
    }

    public String getFilePath() {
        return filePath;
    }

    public String getFileName() {
        return fileName;
    }

    public String getFileContent() {
        return fileContent;
    }

    @Override
    public String toString() {
        return filePath + "\t" + fileSize;
    }
}
